package com.java.springtest.mvc.handler;

import com.java.springtest.mvc.controller.AnnotationController;
import com.java.springtest.mvc.HandlerAdapter;

/**
 * @author Woo_home
 * @create by 2020/2/18
 */

// 多种适配器类
public class AnnotationHandlerAdapter implements HandlerAdapter {
    @Override
    public boolean supports(Object handler) {
        return (handler instanceof AnnotationController);
    }

    @Override
    public void handle(Object handler) {
        ((AnnotationController) handler).doAnnotationHandler();
    }
}
